package com.easyctrl.dialog;

import android.content.Context;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.easyctrl.ldy.activity.R;
import com.easyctrl.ui.base.BaseDialog;

public class WarnDialog extends BaseDialog{

	private Button reconnect;
	
	public WarnDialog(Context context) {
		super(context);  
		setContentView(R.layout.warn_layout); 
		reconnect = (Button) findViewById(R.id.reconnect); 
		if(reconnect != null){
		reconnect.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) { 
				onClickListener.onConnect();
				dismiss();
			}
		});
		}
	}	
	
	private OnWarnClickListener onClickListener;
	public interface OnWarnClickListener{
		public void onConnect();
	}
	public void setOnClickListener(OnWarnClickListener onClickListener) {
		this.onClickListener = onClickListener;
	}
}
